From: Robert Lipe Date: Wed, 19 Dec 2018 03:52:14 +0000 (-0600) Subject: Build fix for Cmake/CLion on Mac. Correct handling of frameworks. They're like X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~12^2~8^2~51^2~6 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=d272840560fc32bf97f8e58995486033ed83091a;p=gpsbabel.git Build fix for Cmake/CLion on Mac. Correct handling of frameworks. They're like libs, but not... --- diff --git a/CMakeLists.txt b/CMakeLists.txt index cd824e6a5..c1b38655d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -217,7 +217,7 @@ if (UNIX AND NOT APPLE) endif() if (APPLE) - set(LIBS ${LIBS} -framework IOKit -framework CoreFoundation) + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -framework IOKit -framework CoreFoundation") include_directories(AFTER mac/libusb) set(SOURCES ${SOURCES} mac/libusb/darwin.c